<?php

Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
  $('.search-form').toggle();
  return false;
});
$('.search-form form').submit(function(){
  $('#mst-ndkHealth-grid3').yiiGridView('update', {
    data: $(this).serialize()
  });
  return false;
});
");
?>

<?php $this->widget('bootstrap.widgets.TbGridView',array(
  'id'=>'mst-ndkHealth-grid3',
  'dataProvider'=>$model->searchModal(),
  'filter'=>$model,
  'columns'=>array(
    'client_number',
    'name',
    'policy_no',
    //'mobile',
    //'city_id',
    //'province_id',
    array(
        'header'=>'Select',
        'type'=>'raw',
        'value'=>'CHtml::radioButton("user",false,array(
                        "value"=>"$data->policy_no",
            "id_number"=>"$data->id",
            "sum_insured"=>"RegHealthPolicyNon::model()->findByPk($data->id)->sum_insured",
            "jml_installment"=>"$data->jml_installment",
            "nama_client"=>"$data->name",
                        ))',
        'htmlOptions'=>array(
                'style'=>'text-align:center'
                ),
    ),
  ),
)); ?>